package cn.jasonone.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.jasonone.bean.SysResourceType;
import cn.jasonone.mapper.SysResourceTypeMapper;
import cn.jasonone.service.SysResourceTypeService;

@Service
public class SysResourceTypeServiceImpl implements SysResourceTypeService {
	@Resource
	private SysResourceTypeMapper sysResourceTypeMapper;

	@Override
	public boolean save(SysResourceType sysResourceType) {
		return sysResourceTypeMapper.save(sysResourceType) > 0;
	}

	@Override
	public boolean deleteByIds(int... ids) {
		return sysResourceTypeMapper.deleteByIds(ids) > 0;
	}

	@Override
	public List<SysResourceType> findAll(SysResourceType sysResourceType) {
		return sysResourceTypeMapper.findAll(sysResourceType);
	}

	@Override
	public SysResourceType findById(int id) {
		return sysResourceTypeMapper.findById(id);
	}

}
